impl Solution {
    pub fn odd_cells(m: i32, n: i32, indices: Vec<Vec<i32>>) -> i32 {
        let mut x=Vec::<i32>::from([0].repeat(m as usize));
        let mut y =Vec::<i32>::from([0].repeat(n as usize));
        for i in indices{
            x[i[0] as usize]+=1;
            y[i[1] as usize]+=1;
        }
        let mut ans=0;
        let mut y_oushu=0;
        let mut x_oushu=0;
        for i in x{
            if i&1==0{
                x_oushu+=1;
            }
        }
        for i in y{
            if i&1==0{
                y_oushu+=1;
            }
        }
        x_oushu*(n-y_oushu)+(m-x_oushu)*y_oushu
    }
}

//[0 0] [0 0 0]
//[1,0] [0,1,0]
//[1,1][0,2,0]

